package 设计模式.行为型模式.责任链;

import java.util.Map;

public class MetricsHandler extends AbstractHandler{
     @Override
     public void handle(Map<String,Object> request) {
     System.out.println("已获取当前运⾏指标并发送⾄Prometheus");
   	 if(this.getNext() != null){
   	      this.getNext().handle(request);
   	  }else{
   		  throw new RuntimeException("请求没有被送达ProceedHandler");
	     }
     }
}